package com.itheima.service.impl;

import com.itheima.dao.IAccountDao;
import com.itheima.dao.impl.AccountDaoImpl;
import com.itheima.factory.BeanFactory;
import com.itheima.service.IAccountService;
import org.w3c.dom.ls.LSOutput;

import java.security.spec.RSAOtherPrimeInfo;

/**
 * 账户的业务层实现类（业务层调用持久层）
 */
public class AccountServiceImpl implements IAccountService {
   //private IAccountDao accountDao = new AccountDaoImpl();
    private IAccountDao accountDao = (IAccountDao)BeanFactory.getBean("accountdao");
   //private int i = 1;
    @Override
    public void saveAccount() {
        int i = 1;
        accountDao.saveAccount();
        System.out.println(i);
        i++;
    }
}
